public class p82_2 {
	double above,bottom,height;
	p82_2 (double a,double b,double h) {
	above=a;
	bottom=b;
	height=h;
	}	
	double getArea() {
	return (above+bottom)*height/2;
	}
}
